package com.ds.lens.data.vo.in.v2.downtime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ds.lens.data.vo.enums.RecurringTypeEnum;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author WeiShaoying
 * @date 2019/11/18 下午5:30
 */
@Setter
@Getter
public class LensRecurringContentInVO {

    @NotNull(message = "重复次数不能为空")
    private Integer repeat;

    @NotNull(message = "重复次数类型不能为空")
    private RecurringTypeEnum repeatType;

    @NotNull(message = "持续次数不能为空")
    private Integer duration;

    @NotNull(message = "持续次数类型不能为空")
    private RecurringTypeEnum durationType;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @NotNull(message = "开始时间不能为空")
    private Date startTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
}
